Debitor: D-3101000 - Test AG - main debitor from 2010:
Create Self Debitor for Partner with Distinct Contact Data| name | value |
|---|---|
| debitorNumber | D-3101000 |
| mandateReference | Test AG - main debitor |
| mandateAgreement | 2022-10-12 |
| mandateValidFrom | 2024-10-15 |
| bankAccountHolder | Test AG - debit bank account |
| bankAccountIBAN | DE02701500000000594937 |
| bankAccountBIC | SSKMDEMM |
HTTP GET "/api/hs/office/debitors/D-3101000" \
-H "Authorization: Bearer $HSADMINNG_JWT_BEARER" \
`# {` \
`# "sub" : "uuid<hsh-alex_superuser>"` \
`# }`
=> status: 200 OK
{
"uuid" : "10945eec-2c18-4537-9b5a-eb0de774885d", // Debitor: D-3101000 - Test AG - main debitor
"debitorRel" : {
"uuid" : "50cc08bf-0119-4f69-af17-abcc0c832460",
"anchor" : {
"uuid" : "efe3662a-02d9-4fa9-a4f0-29dfd893fd78", // Person: Test AG
"personType" : "LEGAL_PERSON",
"tradeName" : "Test AG",
"salutation" : null,
"title" : null,
"givenName" : null,
"familyName" : null
},
"holder" : {
"uuid" : "efe3662a-02d9-4fa9-a4f0-29dfd893fd78", // Person: Test AG
"personType" : "LEGAL_PERSON",
"tradeName" : "Test AG",
"salutation" : null,
"title" : null,
"givenName" : null,
"familyName" : null
},
"type" : "DEBITOR",
"mark" : null,
"contact" : {
"uuid" : "913a0be6-dea8-4a7c-a6a5-8521327e015a",
"caption" : "Test AG - billing department",
"postalAddress" : { },
"emailAddresses" : {
"main" : "billing@test-ag.example.org"
},
"phoneNumbers" : { }
}
},
"debitorNumber" : "D-3101000",
"debitorNumberSuffix" : "00",
"partner" : {
"uuid" : "215088cb-041a-4cc6-8657-7e949cf8dd5f", // Partner: P-31010 - Test AG
"partnerNumber" : "P-31010",
"partnerRel" : {
"uuid" : "9c94cdf2-a746-4438-af53-664b87483a65", // partnerRelationUuid
"anchor" : {
"uuid" : "c43fc218-ae0e-4d6d-afc9-528d9861c2eb", // Person: Hostsharing eG
"personType" : "LEGAL_PERSON",
"tradeName" : "Hostsharing eG",
"salutation" : null,
"title" : null,
"givenName" : null,
"familyName" : null
},
"holder" : {
"uuid" : "efe3662a-02d9-4fa9-a4f0-29dfd893fd78", // Person: Test AG
"personType" : "LEGAL_PERSON",
"tradeName" : "Test AG",
"salutation" : null,
"title" : null,
"givenName" : null,
"familyName" : null
},
"type" : "PARTNER",
"mark" : null,
"contact" : {
"uuid" : "7e8be3df-3e34-4548-8b35-d630a30bfd4a", // Contact: Test AG - China
"caption" : "Test AG - China",
"postalAddress" : {
"country" : "China",
"province" : "Guangdong Province",
"city" : "Dongguan City",
"street" : "No.2 Commercial Second Street",
"district" : "Niushan Wei Wu",
"department" : "Executive Board",
"building" : "Thi Chi Koh Building"
},
"emailAddresses" : {
"main" : "norden@test-ag.example.org"
},
"phoneNumbers" : {
"phone" : "++15 999 654321"
}
}
},
"details" : {
"uuid" : "06e11b1f-3c8c-464e-83e8-a9f761b853d3",
"registrationOffice" : "Registergericht Hamburg",
"registrationNumber" : "1234567",
"birthName" : null,
"birthPlace" : null,
"birthday" : null,
"dateOfDeath" : null
}
},
"billable" : true,
"vatId" : "VAT123456",
"vatCountryCode" : "DE",
"vatBusiness" : true,
"vatReverseCharge" : false,
"refundBankAccount" : {
"uuid" : "7b1c594c-7a5b-4acb-a236-d1cfa4693469",
"holder" : "Test AG - refund bank account",
"iban" : "DE88100900001234567892",
"bic" : "BEVODEBB"
},
"defaultPrefix" : "tst"
}
HTTP POST "/api/hs/office/bankaccounts" \
-H "Authorization: Bearer $HSADMINNG_JWT_BEARER" \
`# {` \
`# "sub" : "uuid<hsh-alex_superuser>"` \
`# }` \
<<EOF
{
"holder" : "Test AG - debit bank account",
"iban" : "DE02701500000000594937",
"bic" : "SSKMDEMM"
}
EOF
=> status: 201 CREATED a359baea-8d38-4b2c-a701-15533d214145
HTTP POST "/api/hs/office/sepamandates" \
-H "Authorization: Bearer $HSADMINNG_JWT_BEARER" \
`# {` \
`# "sub" : "uuid<hsh-alex_superuser>"` \
`# }` \
<<EOF
{
"debitor.uuid" : "10945eec-2c18-4537-9b5a-eb0de774885d", // Debitor: D-3101000 - Test AG - main debitor
"bankAccount.uuid" : "a359baea-8d38-4b2c-a701-15533d214145", // BankAccount: Test AG - debit bank account
"reference" : "Test AG - main debitor",
"agreement" : "2022-10-12",
"validFrom" : "2024-10-15"
}
EOF
=> status: 201 CREATED e880ba7e-1d1f-46f3-a1a3-6bfe78cf500f
generated on 2026-08-10 04:42:25 for branch HEAD